//
//  HD_LiDa_PlayerTool.h
//  HDMusicDemo
//
//  Created by Lida on 2017/8/14.
//  Copyright © 2017年 Lida. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "MusicInfo.h"
#import "Single.h"

#define ShouldPrepareToPlay @"ShouldPrepareToPlay"
#define ShouldPlay @"ShouldPlay"
#define ShouldPause @"ShouldPause"

@interface HD_LiDa_PlayerTool : NSObject

singleton_interface(HD_LiDa_PlayerTool);
@property (nonatomic,strong) MusicInfo *musicInfo;

@property (strong, nonatomic) id timeObserver;
@property (nonatomic, strong) AVPlayer *player;

@property (nonatomic,assign) float totalTime;
@property (nonatomic,assign) float currentTime;

@property (nonatomic,assign) BOOL isPlaying;

- (void)prepareForPlayWithMusic:(MusicInfo *)music;

- (void)play;

- (void)pause;

- (void)stopAudio;

@end
